<template>
    <div>
        <button @click="countUpdate">组合式计数2：{{count}}</button>
    </div>
</template>
<script setup name="ychen">
import {ref} from 'vue'
let count = ref(0);

function countUpdate(){
    count.value +=1
}
</script>

<style lang="">
    
</style>